package com.one.common.common.webview;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.one.common.R;
import com.one.common.config.RouterPath;
import com.one.common.model.extra.DefaultExtra;

/**
 * Author: zhulunjun
 * Time  : 2018/10/23 15:55
 * email : zhulunjun@qq.com
 * Describe :
 **/
@Route(path = RouterPath.TO_WEBVIEW)
public class CommonWebView extends BaseWebViewActivity {
    @Override
    public String getUrl() {
        DefaultExtra extra = (DefaultExtra) getIntent().getSerializableExtra(DefaultExtra.getExtraName());
        if (extra != null) {
            return extra.getStr();
        } else {
            return null;
        }
    }

    @Override
    protected void initPresenter() {

    }

    @Override
    public int getLayoutResId() {
        return R.layout.activity_common_webview;
    }


    @Override
    public void initView() {
        super.initView();
    }
}
